<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>橡皮擦</title>
</head>
<body>

    <canvas id="canvas" widht=1200 height=800>
        Canvas not supported
    </canvas>

    <script type="text/javascript">
        var canvas = document.getElementById("canvas"),
            context = canvas.getContext("2d"),
            strokeStyleSelect = document.getElementById("strokeStyleSelect"),
            fillStyleSelect = document.getElementById("fillStyleSelect"),
            drawRadio = document.getElementById('drawRadio'),
            eraserRadio = document.getElementById("eraserRadio"),
            eraserShapeSelect = document.getElementById("eraserShapeSelect"),
            eraserWidthSelect = document.getElementById("eraserWidthSelect"),
            ERASER_LINE_WIDTH = 1,
            ERASER_SHADOW_COLOR = "rgb(0,0,0)",
            
    </script>
</body>
</html>